package com.syh.bishe.mapper;

import com.syh.bishe.pojo.Ask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syh
 * @since 2024-07-10
 */
@Mapper
public interface AskMapper extends BaseMapper<Ask> {
    @Select("select * from ask where company_id = #{id} and user_id = #{userid} and date=#{now}")
    List<Ask> select_ask(Integer id, Integer userid, LocalDate now);
}
